package com.ls.service;

import com.ls.base.BaseResult;
import com.ls.controller.model.channel.AddChannelModel;
import com.ls.controller.model.channel.EditChannelModel;
import com.ls.controller.model.channel.QueryChannelModel;
import com.ls.controller.model.channel.SendSmsWithChannelModel;
import com.ls.controller.model.serviceChannel.QueryServiceChannelModel;
import com.ls.entity.CommChannel;
import com.baomidou.mybatisplus.extension.service.IService;
import com.ls.entity.SysUser;

/**
 * <p>
 * 上游通道表，不做每分钟的字段限制，这个统一在后台代码中限制 服务类
 * </p>
 *
 * @author pengyu
 * @since 2019-12-05
 */
public interface ICommChannelService extends IService<CommChannel> {

    BaseResult add(AddChannelModel model, SysUser currentUser);

    boolean checkChannelNameExist(String chanName);

    BaseResult edit(EditChannelModel model, SysUser currentUser);

    BaseResult listByPage(QueryChannelModel model, SysUser currentUser);

    BaseResult testSendSms(SendSmsWithChannelModel model, SysUser currentUser);
}
